package com.ht.service.aduit.impl;

import com.ht.util.Pager;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.ht.dao.aduit.NoticeMapper;
import com.ht.bean.aduit.Notice;
import com.ht.service.aduit.NoticeService;

import java.util.List;
import java.util.Map;

/**
 * @author lrq
 * @date 2020/6/28 15:06
 * 
 */
@Service
public class NoticeServiceImpl implements NoticeService{

    @Resource
    private NoticeMapper noticeMapper;

    @Override
    public int deleteByPrimaryKey(Integer gid) {
        return noticeMapper.deleteByPrimaryKey(gid);
    }

    @Override
    public int insert(Notice record) {
        return noticeMapper.insert(record);
    }

    @Override
    public int insertSelective(Notice record) {
        return noticeMapper.insertSelective(record);
    }

    @Override
    public Notice selectByPrimaryKey(Integer gid) {
        return noticeMapper.selectByPrimaryKey(gid);
    }

    @Override
    public int updateByPrimaryKeySelective(Notice record) {
        return noticeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Notice record) {
        return noticeMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Map> selid(Integer gid) {
        return noticeMapper.selid(gid);
    }

    @Override
    public int selEmp() {
        return noticeMapper.selEmp();
    }

    @Override
    public int selStu() {
        return noticeMapper.selStu();
    }

    @Override
    public int selNot(Notice notice) {
        return noticeMapper.selNot(notice);
    }

    @Override
    public List<Map> selpage(Pager pager, Notice notice) {
        return noticeMapper.selpage(pager,notice);
    }

    @Override
    public int selcount(Integer emp_id) {
        return noticeMapper.selcount(emp_id);
    }

}
